using Admin.NET.Core;
using SqlSugar;

namespace Admin.NET.Application.Entity.NoticeConfigs;

[SugarTable("EmailConfig", "邮箱配置")]
[SysTable]
public class EmailConfig : EntityTenant
{
	/// <summary>
	/// 发件箱名称
	/// </summary>
	public string Name { get; set; }

	/// <summary>
	/// 主机
	/// </summary>
	public string Host { get; set; }

	/// <summary>
	/// 端口
	/// </summary>
	public int Port { get; set; }

	/// <summary>
	/// 默认发件者邮箱
	/// </summary>
	public string FromEmail { get; set; }

	/// <summary>
	/// 启用SSL
	/// </summary>
	public bool EnableSsl { get; set; }

	/// <summary>
	/// 是否使用默认凭据
	/// </summary>
	public bool UseDefaultCredentials { get; set; }

	/// <summary>
	/// 邮箱账号
	/// </summary>
	public string UserName { get; set; }

	/// <summary>
	/// 邮箱密码
	/// </summary>
	public string Password { get; set; }

	/// <summary>
	/// 此内容会存在邮件备注内容
	/// </summary>
	public string? Remark { get; set; }
}
